﻿@model LetLord.ViewModels.EditTenantGroupMemberViewModel
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Edit group member</h3>
</div>
<div>
    @using (Ajax.BeginForm("EditMember", "Tenants", FormMethod.Post,
                        new AjaxOptions
                        {
                            InsertionMode = InsertionMode.Replace,
                            HttpMethod = "POST",
                            UpdateTargetId = "tenant-group-members"
                        }))
    {
        @Html.ValidationSummary()
        @Html.AntiForgeryToken()
        <div class="modal-body">
            @Html.Bootstrap().ControlGroup().TextBoxFor(x => x.Name)
            @Html.Bootstrap().ControlGroup().TextBoxFor(x => x.Age)
        </div>
        <div class="modal-footer">
            <button class="btn btn-inverse" type="submit">Save</button>
        </div>
    }
</div>
